﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ZDSoft.UPMS.Web.App;

namespace ZDSoft.UPMS.Web.Controllers
{
    public class ControllerBase : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (AppHelper.LoginedUser == null)
            {
                Response.Redirect("../Account/Top", true);
            }
            else
            {
                base.OnActionExecuting(filterContext);
            }
        }
    }
}
